package com.zpark.i_feign.impl;

import com.zpark.i_feign.IRankingFeign;
import com.zpark.pojo.Ranking;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xiaoyu
 * @version 1.0 2022/11/22
 */
@Component
public class RankingFeignImpl implements IRankingFeign {
    @Override
    public List<Ranking> findAll() {
        List<Ranking> list = new ArrayList<>();
        Ranking ranking = new Ranking();
        ranking.setFilmName("当前网络状态不佳");
        list.add(ranking);
        return list;
    }

    @Override
    public Ranking findById(Integer id) {
        Ranking ranking = new Ranking();
        ranking.setFilmName("当前服务繁忙");
        return ranking;
    }
}
